package com.linghang.lhonline.Util;

import com.linghang.lhonline.dataobject.Comment;
import com.linghang.lhonline.dataobject.Reply;

import java.util.Comparator;

public class ReplySortUtil implements Comparator {

    @Override
    public int compare(Object o1, Object o2) {
        Reply reply1 = (Reply) o1;
        Reply reply2 = (Reply) o2;

        return reply1.getPostTime().compareTo(reply2.getPostTime());
    }
}
